// Copyright (C) ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
//
// $Id: config.hpp 287 2008-11-27 14:32:14Z heavyzheng $
//

#ifndef ZZHENG_LOGGING_LOG4CPLUS_CONFIG_HPP_20080901__
#define ZZHENG_LOGGING_LOG4CPLUS_CONFIG_HPP_20080901__

#include <zzheng/logging/config.hpp>

#if defined(ZZHENG_LOGGING_USES_LOG4CPLUS) || defined(ZZHENG_LOGGING_HAS_LOG4CPLUS)


////////////////////////////////////////////////////////////////////////////////////////////////////
// Macros before including log4cplus headers
//

// Macro to link with log4cplus static library.
// #ifndef LOG4CPLUS_STATIC
// #  define LOG4CPLUS_STATIC
// #endif // LOG4CPLUS_STATIC

// Macro to enable multi-threading support in log4cplus.
#ifdef LOG4CPLUS_SINGLE_THREADED
#  undef LOG4CPLUS_SINGLE_THREADED
#endif // LOG4CPLUS_SINGLE_THREADED

#ifdef ZZHENG_MSVC
#  pragma warning(disable: 4127) // conditional expression is constant (generated by log4cplus).
#endif // ZZHENG_MSVC

////////////////////////////////////////////////////////////////////////////////////////////////////
// Declare log4cplus binding namespace
//

namespace zzheng {
namespace logging {

    //! This namespace contains logging implementation based on log4cplus.
    //! Check log4cplus project at: http://log4cplus.sourceforge.net/
    namespace log4cplus_ { }

} // namespace zzheng::logging
} // namespace zzheng


#endif // ZZHENG_LOGGING_USES_LOG4CPLUS || ZZHENG_LOGGING_HAS_LOG4CPLUS

#endif // ZZHENG_LOGGING_LOG4CPLUS_CONFIG_HPP_20080901__




